package com.config;

import feign.Logger;
import feign.auth.BasicAuthRequestInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by Administrator on 2017/12/24.
 * 自定义config -Auth 访问加密地址
 */
@Configuration
public class AuthConfig{

    @Bean
    public BasicAuthRequestInterceptor basicAuthRequestInterceptor(){
        return new BasicAuthRequestInterceptor("guoyan","222");
    }
    @Bean
    Logger.Level fenloggerLevel(){
        return Logger.Level.FULL;
    }

}
